package com.example.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
@Api("美容管理的接口文档")
public class HelloWorld {
    private Logger log = LogManager.getLogger(this.getClass());

    @GetMapping("/say")
    @ApiOperation("登录")
    public String say() {

        log.info("测试");

        int a = 1 / 0;
        return "Hello World";
    }
}